import { getapi,postapi } from "@/utils/request";

// 视频教程相关start
export const videoTutorials = (params) => {//视频列表
  return getapi("/console/videoTutorials", params)
}

export const videoTutorialsGetEnum = (params) => {//视频类型
  return getapi("/console/videoTutorials/getEnum", params)
}

export const videoTutorialsSetStatus = (params) => {//设置视频状态
  return postapi(`/console/videoTutorials/setStatus/${params.status}`,params)
}

export const videoTutorialsAdd = (params) => {//新增视频
  return postapi("/console/videoTutorials/add", params)
}

export const videoTutorialsEdit = (params) => {//编辑视频
  return postapi(`/console/videoTutorials/edit/${params.id}`, params)
}

// 视频教程相关end
